package com.schoolET.service.impl;

import com.schoolET.entity.Role;
import com.schoolET.mapper.RoleMapper;
import com.schoolET.service.IRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 角色 服务实现类
 * </p>
 *
 * @author lin
 * @since 2024-05-29
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements IRoleService {
    @Override
    public List<String> selectUserRoleById(Integer id) {
        return getBaseMapper().selectAdminRoleById(id);
    }

    @Override
    public List<String> selectUserPermissionsById(Integer id) {
        return getBaseMapper().selectAdminPermissionsById(id);
    }
}
